From 702138289ecdc19c11fd3d8eef1ad43f2d7c2bb7 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 11 Jun 2009 02:34:05 +0000 Subject: [PATCH] (x_get_glyph_overhangs): Fix calculation of right overhang for the static composition case. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index eff922e7422..8d94bfb9db2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -19913,7 +19913,7 @@ x_get_glyph_overhangs (glyph, f, left, right) { struct composition *cmp = composition_table[glyph->u.cmp.id]; - if (cmp->rbearing - cmp->pixel_width) + if (cmp->rbearing > cmp->pixel_width) *right = cmp->rbearing - cmp->pixel_width; if (cmp->lbearing < 0); *left = - cmp->lbearing; -- 2.30.2